The president-elect is seeking legal advice from Pentagon in a bid to veto the controversial agreement